put back proc.form and added tests.r in demo