try minpoly when in equals testing