tests form type