Add unit tests for AddTypeDescriptor/ContextAccessor