j unit testing for parser.