Test each element of array instead of array itself, refer to #11