"Can I use a hex editor or something to make it so I can re-take the test?"

Possibly, but it would be easier to use iZakaroN's SaveEditor to just give yourself the reward for getting the questions right (a level of Restoration, and some experience points).

IIRC, there is an option to say you are not ready yet, so you can save the game before attempting the questions.....