Updated test gradient

Gradient not looking very good... I need to check the code later.