FormMain test function