Added list unit test with maxDepth > 0