Adjust expected test outcome without exception