Multiple fixes on CTS-Test

- Correct numbering of Errors fixed
- Proposed fix for [@type="la" and @n="?"]
- Improvement on variable reuses
- No test added (Has to be done)