I think this would be better if you check against the command line itself rather than the output, as this output could get generated in a few ways.