added tests for logged in and out for posts

Post Functionality including logged in and not logged in actions.
shouldn't this one be end time?