add tests for error interface