Autojit should check jit_targets for selecting the jit function
Add test for issue #138