Fixes duplication of tests bug.