Make the number of loops and the test duration configurable

No BC breaks (constructor parameters are optionals)