added unit test cases for pw_group module

added unit test cases for pw_group module