update tests for rspec 3, and make the #form_data test more detailed