Import assert in PaserTreeValidator
Fixes #532.