increase accuracy of gradient search and check parameters in unit test