Use Realm.close() in unit tests

But many other methods could fail as well all over. We don't try to protect those testcases.