add test
added tests
added log of resetting nuOfIterations
formatted