fixes tests for update_permissions