fixes #5197 working on junit test