Connection unit tests
Merge pull request #17 from martiis/client_tests

Connection unit tests