add additional paranoia-tests to PinDMD code and output error messages