Fix bug that active downloads are not saved with --save-session-interval
Add test for saving finished download with force-save option