factor out TestCase, add PerfTest