COMP: fix shadow declaration warning of cmd in test

Change-Id: I84932c768c1968d05ffb5c5b55c54118a07c1537
Merge topic 'SIMPLEITK-453_AddEventCallbacks' into next

8662c93d COMP: fix shadow declaration warning of cmd in test