test form logic