Added mocha test for dupe-discovery fix