fix resource tests
make locals work with precompiled templates