Simplify the test code, and drive-by also test that these algorithms return the right iterator as their return value.
This came, obliquely, out of D100866. Fixing this test now will remove the dependency on <span>, which means I won't have to mark it XFAILed in debug mode because it no longer fails.