Add unit test for wildcard "*" permissions setting