added adaptive gravity test.