making rosenbrock test type independent (easy to extend externally to cu...

...da tests). Added adagrad rosenbrock test.