write a test for nested arrays