mocha and karma (unit and e2e)