Added first test for newton method