added test to match value in array
fixed matching against plain object values