First working client test

Client testing code can now call functions within client.js.