added a test case for removing references from parents ( Issue #113 )