Accurate version of semantic-similarity with test class