scan_name never returns nil because RE_NAME matches an empty string.
Add more tests.
Fix time value validation.