Fixes permission test.