tests: Use sqlite3.Binary() with the log files