added test of polynomial