Optimal Stopping and Sequential Tests which Minimize the Maximum Expected Sample Size