Use Realm.close() in unit tests

split statement