added test for de/serializing descriptors in JSON