simplify child weight condition and add tests