Fix routes.php including for PHP Unit testing

Running tests with PHPUnit causes to include multiple times routes.php, causing errors if there are functions declared in it