Working on test cases for Gauss-Newton