added tests and child count handler in prep for nth selector handling