Fixes failing tests

Adds a seperate unit test app loader, removes e2e backend from tests
adds scope.digest and httpbackend.flush to tests