Unit test for Similarity