refactor user spec