Fix (de)serializer test