add children tests
fix children fn