added unit test cases for pw_group module
Merge pull request #19175 from rupeshta/pw_group_unit_tests

added unit test cases for pw_group module