AS7-6476 Fix the rest of the failing tests which were affected by this change and also fix the RunAsMergingProcessor which was incorrectly setting the RunAsPrincipal if a DD was involved