For false positives, how about generating the test units and run it in isolation?
All major languages have the interpreters or embedded languages to execute function only.
The goal of the tool is to also detect code that is similar and behaves differently. There are not ideal duplicates, but still a code that can be refactored, abstracted, or fixed (because the variance may be the result of bug).