Implement the TestCase class

Part of #19