test case for `serialize` default values.

test case to prevent regressions described in #9110