Monkey patch request in smoke tests to work around secnding secure cookie over HTTP