Tests that elements panel updates hasChildren flag upon adding children to collapsed nodes.