[ticket/12822] Fix test runs of avatar manager_test

PHPBB3-12822