test validate