Demo of how to do end-to-end testing with mocks using AngularJS