Add an almost end-to-end test which checks the output of a command