Set up template_root with explicit Rails root.

Otherwise it wouldn't work with a dummy app in tests.
Tests.