fix callback style and require paths
add test templates
fix callback style
add template loader tests