Check for eofile while reading name or number. Now passes all tests.