If you want the dictionary definition, just double click on any word.
driving test
vs
test drive

A driving test (also known as a driving exam) is a procedure designed to test a person's ability to drive a motor vehicle.

For example:-

Ash passed his driving test.

A test drive is when you drive an automobile to assess it, usually before buying it.

For example:-

It's good fun going on a test drive.

!Note - This sentence might help you to remember:-

You need to have passed your driving test in order to take a test drive.