corrections to similarityTest.c