update for karma 0.9.2

I couldn't run test e2e.test with karma 0.9.2.

after digging and fixing warnings I've create this pull request.