Fixed minor errors with lexer error handler, added a simple test file