This test requires a question category containing at least 4 questions.
1. Login as a teacher and add a quiz activity.
2. On the editing quiz page, add a question from the category.
3. Add 2 random questions from the same category.
4. Preview the quiz and check that all the questions are different.