[ticket/12684] Fix tests

PHPBB3-12684