check for sub id in publishrequest, more debug

this enables subscription support against prosys example server
We need change tests: for NodeID and for ExpendedNodeID.