Fix test

+ add a name to descriptor
+ helper encodeVariableName throws a runtime exception if name is empty.