gh-38689: Fix tests with singular 4.4.0p3
Fuzz some tests to make then pass with singular>=4.4.0p3, which returns
different Gröbner bases in some cases
URL: https://github.com/sagemath/sage/pull/38689
Reported by: Antonio Rojas
Reviewer(s): Antonio Rojas, Michael Orlitzky