ensure ActiveRecord is loaded when running tests

fixes #2664