[ticket/12716] Add regression test

PHPBB3-12716