updated karma and tests