Add test for clearing relationship without inverse