make karma tests work