refactor User test