[ticket/11620] Improve session test coverage

The session test coverage could be improved to help prevent regressions for any factoring work on sessions.php.

PHPBB3-11620