update test with new type of Exception