Fix warnings in quiz_question_permission().
Trying to fix test cases.
Fix typo.
Update QuizQuestionTestCase: Add helper method to create question entity.
Fix bug: QuizQuestionTestCase::createQuestion() does not create question.
Fix LongAnswerUnitTest.