Fix test error in annotations introduced by serializer factory pseudo-enum