Fix off-by-one error, and add test of faulting in JIT code.