code coverage 40% but protractor is undefined