added tests for nested lists