add test for gradient and Hessian computation of registration similarity function