Modified test_extraneous_dependencies_attack.py.