Unit tests fixes

Trying to put the SQLite database file in the /tests sub-directory.