[ticket/13034] Fix unit tests

PHPBB3-13034