Add serialize test.