POULPE-507 Removed unnecessary session.flush from tests.