Cluster master test

Added tests for getMasterAddressString() and handling ClusterMasterTokenTransitionListeners