Fixing failing test cases due to optional dependencies not installed.