[ticket/12777] Add tests for unavailable extension

PHPBB3-12777