Test to allow Range including DateTime and DateTime::Infinity

Closes #8587