[ticket/12288] Add tests

PHPBB3-12288