[ticket/11768] Added more tests covering untested code paths

PHPBB3-11768
[ticket/11768] Added tickets tests

PHPBB3-11768