The issue with buying and owning scuba tanks is that you need to get them filled, usually at a dive shop, and dive shops can refuse to fill any tank, at any time, for any reason. Dive shops vary greatly in their knowledge of scuba tanks and willingness to fill tanks they either did not sell or are not familiar with.
Unfortunately it's not much better at hydro shops. You might think that they are uniformly knowledgeable about scuba tanks, being licensed, but you would be wrong. So the whole thing; buying, owning, testing, and filling scuba tanks is a big fat crapshoot unless you own a compressor.
With modern AL tanks there's usually not much of an issue; they basically always pass hydro, they don't rust, dive shops see them all the time and are comfortable filling them to 3000 PSI. Too bad they suck to dive with!
Older tanks are the problem, which is a shame because for shallow local dives, it's tough to beat a LP72, and they're cheap to buy. If you can find a dive shop that recognizes the appeal of these tanks and will fill them, they're terrific.
The way to buy steel tanks is to look inside them, with a good light, and have some idea of what you are looking at. It's not rocket science, it just takes a little experience to recognize the difference between surface rust (that can be a by product of hydro testing) and deep corrosion resulting from wet fills and/or sitting empty with moisture present. It's fairly unusual that any scuba tank that looks fine on the inside (and of course outside) will not pass hydro. It does happen, but not frequently. Usually if you buy a tank that's out of hydro, you can get the seller to agree to refund your money if the tank fails hydro. Then you're only out the cost of the test, which around here is about $25 at a hydro shop.