Self-Testing by Polynomial Division