Pass ClosureCompiler tests

PTAL
See above. This is third time I see this pattern. We should have a function for moving all children to another parent.