fix serialize unit test error