Clean up test_execCommandAction() with the previously added utility functions.