sample to use karma to run the unit test and e2e test