[SD-1122] Unit tests are added for the privileges