check for :passed_or_allowed_failure? before :errored? or :cancelled?