add test for nested arrays