[ticket/12009] Fix functional tests.

PHPBB3-12009
[ticket/12009] Update test to check for invalid extensions.

PHPBB3-12009