Add tests for exception consistency.