Ability to override connection instance for testing purposes