test case for `serialize` default values.

Closes #9110
Merge pull request #9597 from senny/9110_serialized_not_null_default

test case for `serialize` default values.