fixing JBI tests.
fixing a testcase