Moving the connection mocking around, so it's central enough for every test to use if needed.