Unit tests for mod_dup