testing functions with words as lists