bug fix for app.rb and test_form