Fix testsuite with mongo. Fix RealmModel.get**ById(). Added new unit tests