unit test form-tag function