If you modify create_request to be like below, then you won't have to add the block `{|p| ...}` which is irrelevant in this test.

```ruby
def create_request(session_data = get_session_data, &block)
  block ||= lambda do |params|
    params[:id] = 0
  end

  klass.new(session_data, &block)
end
```