Tries to fix the template loader during tests