A Rules Core Integration failure appears to be genuine: the test case is sending sending email to all users with particular roles, and only checking the last one is equal to the test user. However, because the list of roles includes 'authenticated user' the email is being sent to all users including the admin user (uid 1). Sometimes, depending on SQL result ordering of a query without an order-by clause, this happens the be last, and therefore the test is failing.
Solution, remove DRUPAL_AUTHENTICATED_RID from $roles before invoking mail_to_users_of_role.
Marking as "major" just because having a test failure may prevent other patches from being suitably reviewed.