Use Realm.close() in unit tests

close realm in a finally clause instead?