Test detection of failing command