validation refactoring

- class ValidationContext converted to interface,
- base class for validation tests introduced
- new command for validation introduced