Bug 1005057 - Switch to system frame inside get/set permission test meth...

...ods