add formgen test file and implement text input