Added Polynomial test function