Fix test check for raised exception
1 file changed