moved the connection used in tests to the init to cut down on duplication