Upgrade use of deprecated get_context_instance.
Add missing setType when editing question tests.