Fix the TestCase class and make tests pass on ruby 2.0