working with sgd implemented correctly, two unit tests