only respect return code/error when testing binary