added test cases for pw_user module

added test cases for pw_user module