fix authentication helper
some small changes to posts_controller_spec