In the tests we can pass heightUrl and lv03tolv95Url to the directive through the options object on the $rootScope. Every thing is already set up for that. You'll also need to change expectedHeightUrl and expectedReframeUrl. Isn't that sufficient to fix the tests?