added test of k_word_frequencies