Added univariate tests

for gradient descent and newton raphson.