Rename getParent to getParentRelation and added more tests for soft deletion