Added a test for word checking from a generated list