added unit tests for Cluster