more tests, fixing up the l1 gradient