switch to karma for testing