Fix test custom object serializer.