test: update karma config
test: make tests work under karma