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

PHPBB3-12009