misc
Fix broken test cases.
Move result generator to quiz controller.