passwd -f Test will work when we set the password and then when we issue passwd -f Test , then it will prompt for new password during login before that we need to provide the existing password.
I tried the below command after creating the new user.
passwd -d test
passwd -x 0 test
When I login it asks for the new password and does not prompt for existing password.