inject $compile and $rootScope in beforeEach