Improve message size test with multiple types

[ci skip]