For this point I have to say that @pozdnyakov is correct, otherwise it's possible to destruct a child instance with a parent pointer and case memleak. but relax guys, it's just an unittest :-)