Added test for js duplicate