Rails 4 & mongoid test fixes