refactor user_spec

refactor user_spec