Add a test for array creation with field name