Mongoid support and tests corrections