Use Realm.close() in unit tests

Because this is junit3