update tests for matching elements in an array