Unit testing and e2e testing examples for AngularJS directives, directives and services