Wrap runtest into TestCase. Clean up config.