Cli tests

Opening this up for further discussion.
`waitForJobEvents` returns the last job ID, so since you only wait for one event, you can use that ID here rather than getting it from `flynn ps` (as `flynn ps` isn't under test here).