Use Realm.close() in unit tests