you could probably just use mocks to mock out the connection with a testing object instead of making it part of the options hash