It sounds like a sensible approach, if the test results will be accepted as proof. It also depends how much time you have available, as public hospitals may not do the test and produce the result quickly enough
"5 year visa" sounds like DTV, lasts 5 years of unlimited visits of up to 180 days at a time. Look up the requirements on your country's Thai embassy website to see if you would qualify