Add logging and tests for driver management.

Closes #23.