[ticket/12818] Add tests

PHPBB3-12818