Add test coverage for new exception types.