Added a test for handling an invalid post.