Added tests to verify JSON-array behavior.