Added test code for delete method in posts.