Remove workaround for non-lazy serialize in tests

`serialize` is now lazy, so the workaround is no longer needed.
Merge pull request #15587 from sgrif/sg-remove-workaround

Remove workaround for non-lazy serialize in tests