Change return code checks in unit tests

No match.