test adding children as an object