Upgrade tests to rails 4.1. Fix bug with recent httmultiparty.