fix permission degradation test