Make sure `test/db` is always available.

Closes #380.