Reintroduce missing test-cases for escapeShellCommand.
Merge pull request #1583 from AndrejMitrovic/Fix9310

Reintroduce missing test-cases for escapeShellCommand.