Add test for JSON body request with array

* Add a test to make sure sending a JSON body where the root element is an
  array works correctly