check for sub id in publishrequest, more debug

this enables subscription support against prosys example server
In another case we will have invlid tests.