Test authentication control
Fix: 'uid' is 0 under some circumstances