test: newton: fix scritp a little bit, change to output data to variance foemt