testIllegalSimilarityFunctionChange