Cluster test: added function assert_cluster_state.