SGD tests refactored to avoid code duplication
AdaGrad working with tests