fixed bugs with protractor and karma