Adding validation to word generator and tests for new methods in Word class and word generator tests