error handler test cases