poly: Add IsZero method to Polynomial and add test case.