Add in test for json serializer.