Added a test to check form encoding of array