Added a couple of tests of automatic differentiation