Permission test fixed.