Test for TryOrFail decorator