FABRIC-466 Added an unit test for it
Fixed the test shutdown issue of MasterEndpointTest.
Changed the ZooKeeper Server Port dynamically.
Fixed the MasterEndpointFailoverTest