align properly the test command lines and the code
finally get rid of the useless case of precomputed gradient