fix: ring constructions with wrong coeffs (tr.517) + tests