Added a tester to estimate running time