add Similarity method for cleanup in unittests, fixes #182