[feature/auth-refactor] Test validate_session on provider_apache

Provides a test for the validate_session() method of
provider_apache.

PHPBB3-9734