To generatate tests:

compile gen.cpp

and then call:

genbat

