Sprint 12, Issue 6: Unit test for connection, the connection object structure, and lots of refactoring.