creating a NewtonIteration check for solutions in service-functions, created a test file to test changeFlags function