fixed redundencies in similarityTest.c