Fixes failing tests for Download generators

The new with_view functionality uses the DB, and so we have to stub it.