a simple test case generator