Fix broken tests after converstion from Mongoid to ActiveRecord.