As Beelzebub says, most dealers will have the insurance for test drives covered. If you are buying privately and the owners insurance does not cover you (as it almost certainly won't) then you cannot legally take it for a test drive. One possibility is to get the seller to take you for a drive in it which will give you some idea, otherwise it's just a case of looking and listening.
I do wonder how much value there is in a test drive. Of course, if you are trying out different makes and models to see if you like them, a drive is essential. But if you know what you want and find a likely second hand one, you can check all the usual points with a close examination. You will hear any engine faults much better from the outside with the bonnet up and just sitting in the driver's seat with the engine running will allow you to test the brakes and steering.
If you are prepared to spend money on a potential purchase, I suggest that an RAC engineers report and an HPI check would give better value that insurance for a test drive.