Fix duplicate detection in test locator.

Change-Id: I9a6ebfda4e8b09927eb22bec6ddf2989b8104070