tests for Client constructor