tests: add test for newton