added karma for test