Rename sqrt test functions to sqrt_test_[123]d
Add 2d and 3d Fortran test function variants