fixed tests for Mongoid