adds test for array matching