test for nested arrays