Fix timeout tests that fails sometimes due to inaccurate limits measurement