fixed tests for serialize nulls