xmlCheck using the right directory for .test

**DON'T MERGE YET**

This fixes #617 

Note that some XML checking errors will remain after merging this in develop (eg. the ones related with scopeValue), that will be fixed in others PRs.
@kzangeli this is the "critical part" that I mentioned at skype. Probably is right, but I'd prefer a double check.