[ticket/10120] Add functional tests for accessing profiles

PHPBB3-10120