[ticket/12620] Fix session tests

PHPBB3-12620