Add test for validating nested array