[ticket/13073] Rework route tests and add tests for more directory types

PHPBB3-13073