Fix test for new exception.