Wrote a test for client.go
broke things out to separate files