Only create folder index automatically in test environment