use templateUrl in directives and fix test for templates loading with karma-ng-html2js