Added tests for posts and index route.