[ticket/13133] Add unit tests

PHPBB3-13133