random_word method update. test case add.