Adding r.error test cases