[ticket/9388] Fix unit tests.

PHPBB3-9388