Added test to client.js.