check for command before test