fix test `fail on error code != 0` failing on travis