test: add tests for BaseError custom error