fixed the template loader requires and added manual tests