Fix broken permissions test