Feature/unittesting

Hey mate, just some more coverage on the unit tests.

Notably this time we have good coverage of the HTTPConnection class.