more robust max inflight test (now quite slow)