Service to test Service Worker with AngularJs