[ticket/11226] Add tests

PHPBB3-11226