improved isIdValid
PMPW-30 : fixed description; adjust unittest