Add expected exception in Test methods