update test to karma