Add serialize back to the test case