[ticket/12422] Add tests

PHPBB3-12422