handle errors in serializer tests