Fix ActiveRecord::ConnectionNotEstablished error in tests.
Fixes alexrothenberg/ammeter#30