tests: fix karma config
tests: fix the unit tests