Adding a bunch of ut's for the new serializer usecase, additional error checking for idempotency