Change expected exceptions for some tests.