Added test for input/output in startup and fixed an error