refactor user_spec