Added test for list index scope