[ticket/11997] Add functional test for redirects in controller

PHPBB3-11997