MDL-46331 GIFT question import was breaking content inside <pre>.

Also, adding a Behat tests to verify GIFT import works without errors
(but leaving the detailed testing for the unit tests).