The first version of gen_test.

Now the gen_test can generate a test scarfold for a single function.
Finish handling of class and ctor.