DEV: Fix bug in polynomial
DEV: Add regression test for hermite degree 5