MDL-62564 privacy: Add unit tests