fix Replace in... unit tests
re-order commands
Merge pull request #8117 from adobe/randy/replace-in-unit-tests

Fix Replace in... unit tests