test case for children
move out as a func