Cleaned up unittest logic for LR0ParserGenerator.