added test cases for array syntax