added karma test infrastructure