[ticket/11224] Add unit test

PHPBB3-11224