polynomial: improve tests.