KItem built from KLabelInjection and empty KList should have exact sort
removed dead code related to test generation
Merge pull request #1004 from yilongli/fixing-issue-997

Fixing issue 997