[Shim] Fixed bug in debug output
[Test] Restricted permissions