Add edge case tests for Mongoid and MongoMapper