Handle EOF of user-input, and unexpected parameter in testsuite