Prepare VM test engine for running JIT-ed tests (+ a bugfix)