Add validation tests and fix noargs case.