diff --git a/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php b/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php
index e50e4c4..3b376db 100644
--- a/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php
+++ b/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php
@@ -264,7 +264,7 @@ public function testInvalidDates($input, $timezone, $format, $message, $class) {
   public function testDateTimezone($input, $timezone, $expected_timezone, $message) {
     $date = new DateTimePlus($input, $timezone);
     $timezone = $date->getTimezone()->getName();
-    $this->assertEquals($timezone, $expected_timezone, $message);
+    $this->assertEquals($expected_timezone, $timezone, $message);
   }
 
   /**
@@ -470,6 +470,10 @@ public function providerTestDateTimezone() {
       [$date_string, new \DateTimeZone('Australia/Canberra'), 'Australia/Canberra', 'DateTimePlus uses the specified timezone if provided.'],
       // Create a date object with another date object.
       [new DateTimePlus('now', 'Pacific/Midway'), NULL, 'Pacific/Midway', 'DateTimePlus uses the specified timezone if provided.'],
+      // Create a date object from a string with an explicit time zone offset, and a specified time zone.
+      ['2007-01-31T21:00:00-05:00', 'America/New_York', 'America/New_York', 'DateTimePlus uses the specified timezone if provided.'],
+      // Create a date object from a string with an explicit time zone offset, and an specified time zone.
+      ['2007-01-31T21:00:00-05:00', NULL, $system_timezone, 'DateTimePlus uses the system timezone when there is no site timezone.'],
     ];
   }
 
