Util class for forms and its tests