fixed set parent, test for get children
fixes and tests for delete refobj, referenced_by, get_all_refobjs