Allow custom client in TestCase.login()