[ticket/10899] Add unit tests

PHPBB3-10899