add a test to test for nested arrays