Test function of program now displays definitions of words