(fix) convert templateUrls for directives in tests

On Windows, tests reference a module path that can use backslashes, so
use converted templateUrl with forwardslashes only in tests.