fixed adagrad unit test based on Adam's upgraded / fixed adagrad commit