N-Grams similarity test