refactoring user_spec