karma tests fix