Fixed the unit test that tests the reconnect logic of a client.