config: add test cases for all possible permission formats

While fixing permissions represented as a proper octal integer commit
5c80ccac appears to have broken *all* other possible ways to format the
value including an integer without the 0 prefix and quoted in strings.
This very likely breaks even more configurations than the other bug did.