There is a poster here (I think) whose signature is something like, "By the time you know enough about yourself and bikes to get any valuable information out of a test ride, you don't need a test ride."
Basically, you can't tell anything by ten minutes on the roads around the bike shop. it probably takes at least an hour for your body to really react tot the sizing .... or longer if you are more fit. It would probably take an hour to figure out how the bike actually worked for you ... . to notice and understand the new feelings over bumps, around corners, under hard braking and acceleration.
And by the time you know enough about riding, and how you want to ride, and what you wanted a bike to do, you would probably have ridden enough bikes and studied enough geometry charts that you could look at the numbers and the parts spec and know enough to make a choice.
The only time a test ride is Absolutely essential is when buying used, when you need to learn a whole lot about a bike in a hurry, because buying used, you really can't count on returning it if two days later yuo find some major flaw .... possibly a flaw the seller was hiding.