Adding test of removing all command during a command.

This tests the case when a command modifies the list of commands.

Change-Id: I1d4546b63a32cb46dcaf3020bfd59bd5fc07c91b
Merge topic 'SIMPLEITK-525_EnableDeletionOfCommandProcessExists' into next

e9900bef Adding test of removing all command during a command.