fixing karma tests