[ticket/9871] Fix tests

PHPBB3-9871