Fixes to Polynomial and PolynomialTest source code