Fix test_command_errors test