Tests for error handlers