You may not need a lab test to estimate your VO2 max. You can use a calculator to do it. You’ll need to know your age, resting heart rate, waist circumference, exercise frequency, intensity, and duration.
Once you have the information you can use this VO2 max calculator.
The formulas were based on the HUNT Study in Norway.
Here’s an article about it: https://www.runnersworld.com/sweat-science/should-your-doctor-check-your-vo2-max
Here’s the link for the study: http://journals.lww.com/acsm-msse/fulltext/2011/11000/Estimating_V_O2peak_from_a_Nonexercise_Prediction.2.aspx