moved tests for validation code