Could you keep the original test case when `allowArray` is taking the default value and the data is an array?

We also need a test case when `allowArray` is true and only part of the elements in the data array exist.

Thanks.