tests: handle max documents in command splitting.