test return status of example commands and pipes