added test cases for pw_user module
Merge pull request #19123 from rupeshta/pw_user_unit_tests

added test cases for pw_user module