Remove a warning of "assigned but unused variable - child" in test