Issue#13: Implemented basic test for API client.
Implemented test for count and get requests. Issue #13 can be considered closed.
Implemented tests for mail storage and created test-infrastructure for dealing with dependency injection in tests. Fixed #13.