refactored specs for user and post models