Fix payload_generator.format_payload rspec

The platform should match.
Land #3037, @wchen-r7's rspec fix