Fixed e2e and unit tests

Also provided an example angular service and it's associated test