Fix definition of polyval, and add smoke tests for other public methods.