test class for formGeneration