Added duplicate tests functionality