fixed unit tests in mod_dup