Fixed all karma tests