Setting localhost in testReconnect method of ConnectionTest test class