[ticket/12174] Add tests

PHPBB3-12174