for unique_words, test should check the unique words in the order in which they appear in the string