Remove duplication of asserting output of command