buildCandidates sub routine of RawMatcher passes tests