Fix wildcard permissions in tests