[ticket/11495] Add unit tests for the implemented functions

PHPBB3-11495