[#1117] use model.repo.delete_all() in test helpers