Refactored the Client tests to the connect method.