rewrite some specs and up mongoid to 3.1.1