working gradient test in NonlinearTests