Solved bug when reset password after locking the account.
Refactored the UI Test.