Fixes #6039: correctly update the expected reports of modified nodes
Merge pull request #741 from ncharles/bug_6039/dev/correctly_update_expected_report

Fixes #6039: correctly update the expected reports of modified nodes