[BUGFIX] Fix regeneration of autoload files in testing context