Added more tests for JSONMixin. Changed attribute listing from to_mongo
to using __dict__ in JSONMixin.