Enable users to override the client used in tests.

Fixes #7, thanks nkvoll!