Fixed bug with wrong test number per thread