Test that register_dependencies ignores finished jobs.