Going along with a few of my previous comments, it would be good to have a test where the parent element is not present to verify the error-checking code.