Fix tests to allow for extra request headers in Ruby 1.9

Change-Id: Ia0679eac335bfa0f17c36ae25a313663e6e58795