Check with jitted-loop is in nopython mode
and fixes a test