PID: move validation checks to PersistentId constructor
... from test_persistent_identifier.
Closes T1986