Unbreak test_detect_duplicates.py and link into :all.

I think the test could be improved to be more black box and not dip
in to test a private method directly, but this fixes the basic break
due to a signature change in the tested private method.

https://rbcommons.com/s/twitter/r/484/