fix errors in poly2numbers
change Temptest from normal test to test for poly2numbers and numbers2poly