added more tests, fixed typo in client.py