More test cases for Polynomial. Only need to solve cubic and quadratic equations.