Improved tests for numberOfChildren and parentList