fixes #5197 finished junit test