added test for isQuestionValid method