BS-10439 : Java methods

- Fix tests in error randomly