test saving jobs to mongodb