Issue #2381531: fixed update hook not working when truefalsewas not enabled.
Let Generator support base result entity.
Use generator on submit event of result entity form.
Move 'quiz_begin' invoking to generator.
Fix broken test cases.