create form test function