Added DuplicateRemoval
updated test.cc