Updated similarityTest class