fix for peer dependencies and optional karma