add support for unit tests of directives with templateUrl