added tests for logged in and out for posts

Post Functionality including logged in and not logged in actions.