Fixes karma tests