[ticket/12589] Fix tests

PHPBB3-12589