Simplify testing of command execution