Add unit tests for ConstantDescriptor