Pass `$expectedCookie` from the provider directly?