Use Realm.close() in unit tests

A comment after the getName() would be good then : // Should throw IllegalStateException