Refactored testCluster