feat(spec): add test coverages

* add confirm directive test
* change runs, waitsFor to use $rootScope.$digest