Fixed codestyle
Added test for Resetter->resetIndex