fix bug in jalr; add a test case