test middleware when delete blog