upgrade gems + write a small test to make sure mongoid behaves the right way + cosmetic code changes