fixing permissions tests