move serialization out to its own module, remove pending test :lipstick: