Add tests for base exception class