test/helpers.js: fix check for array.
Merge pull request #347 from XhmikosR/array

test/helpers.js: fix check for array.