fix tests for loading templates from data dir