fixed test/quiz/etc. detection