added karma e2e tests