making rosenbrock test type independent (easy to extend externally to cuda tests)