added tests for class methods of PermissionServiceAdditions and updated comments