Added tests for unique_words method