Fix DateTime comparison with DateTime::Infinity object
Test to allow Range including DateTime and DateTime::Infinity

Closes #8587
Merge pull request #8927 from dkubb/issue-8178

Fix DateTime comparison with DateTime::Infinity object
Add regression test to #8907
Fix the TestCase class and make tests pass on ruby 2.0