Refactoring of test specs so that both ActiveRecord and Mongoid tests can be run cleanly in one master run