tests for cluster class