How Watermark Detection Tests for Statistical Significance (the Z-Score Behind the Flag)