[ticket/11620] Add extract_current_hostname

Add a tests for extracting the current hostname from session.

PHPBB3-11620