Add tests for new exceptions.