Updated permissions tests.