refactored specs for Post model