Fix test regressions from 4e4b10f702

PostViewTests.formattedPublishDateForPublishedPosts is still failing but this is a separate issue as this is also failing in master branch