Added karma unit/e2e unit tests