There are actually a few viral infections that are highly contagious and fatal. Some labs offer a "boid panel" that tests for all of them from one blood sample.
The cost of the test isn't all that high, but you have to take your snake to the vet, have the vet draw the blood sample, and then ship the sample overnight express to the lab. All of those costs add up quickly.