Refactor for reset password feature test.