add lists test cases and fix bugs