First version of a testcase generator.