Changes to ListParser to fix a bug. Testcases updated