Reset counters so that the test can be run again for camresolutiontest.js

If the test is a run a second time it reuses the counters from the previous run effectively going out of bounds.
It makes more logic to initialize the variables at test start than to reset them at test end for the next run.

Can you move this to the test start? (i.e. CamResolutionsTest.camResolutionsTest)
Also once you have done so, you can remove the initialization on the main scope.