Fixed legacy tests after permissions changes