fix permissions test