adding a test for polyfit for trigfuns.