[ticket/13036] Add unit tests

PHPBB3-13036