Upload unit testing for delete post function