add tests for validation code