Added some tests to client.spec.js