simple array matching with tests