Dreaming of tests of any sort can indicate some form of self-assessment. Medical tests may be alerting us to the need to watch our health.

A driving test would suggest a test of confidence or ability, whereas a written test would signify a test of knowledge. You might also like to consult the entry for exam / being examined.