added karma test