change prevValue in NodeExtern from string to *string
add a test for setting empty value