Raise error tests corrected