Changes in tests/jh.c: some fixes, added commandline options to control.