Tests for nested collections with variable length