Refactored interface, added tests

Add mock so connect method in Client class works as a database mock, with it's procedures.
And some tests for Client class.

- Fixes #1