Modifying the test_sgd.py