Moved setting class defaults to a private class method.
Fixed all tests to work with both AR and mongoid3