@elbati: since you wrote both the code raising the exception and the test, you're best suited to fix this. :-)
@elbati: since you wrote both the code raising the exception and the test, you're best suited to fix this. :-)