Adding thread check on RealmObject. Refactoring unit tests. Updating changelog.