update ngram_test.cpp