Updated test to use children() instead of the deprecated child()