Improve unit test case for CBL java core #299