HHH-8861 Test cases to illustrate the problem with session.refresh and to test the solution in the previous commit