Make gem test work in the presence of dups