Further work on the validator ; Unit test
Fixes to validator
Fixed path to test document