Use Realm.close() in unit tests

This test has nothing to do with closable, why is it removed?