Improved execute-command test case