Testing YAML serializer