Added serialize test