[ticket/12657] Fix unit tests

PHPBB3-12657