First tests for validator.
First draft of validator.