Added tests for posts on the index page