renamed class to Client from api
added a few more tests and fixed a bug they found