added test for min and max length of words in dictionary