add test that children have right type