MDL-62563 privacy: Add unit tests