Merge "res_ari: Fix inverted test giving wrong error message."