fixed unit and e2e testing
added testing with protractor