fix creating post tests with logged in and logedout user