Makes number of test retries a parameter.