Added more tests, 97% test coverage of connection module.