[ticket/12610] Add test for the base case

PHPBB3-12610
Merge pull request #5 from ptitlazy/ticket/12610

[ticket/12610] Add test for the base case