Fix testing.
Don't unlink output files in the master.
Compute output file size on the worker.
Add default value for events_read for files in the database.