fixed bug when running the similarity test