global gradient test done and some parameterized fixes