[ticket/12990] Fix unit tests

PHPBB3-12990