[ticket/11467] Add language variables to tests

Convert the hardcoded strings to language variables.

PHPBB3-11467
[ticket/11467] Add user object to extension manager for tests

PHPBB3-11467