Refactor ClusterManagerTest to use correctly junit