Test validation of required value that is an array.
Revised to cover the case of string input param as well as array, and added test case to tests/isValid.js