minpoly: fix test failures