Added --test option to test generated parser.