improve test for can_be_parent