deposit: migrate workflows and fix test

* Migrates existing workflow to new workflow tasks.

* Fixes an issue with a test.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>