Add a test for new exception.