Edited jim_test.py

... amongst other small changes, to slightly improve the test harness.