Add serialize_test