Rewrite tests for configureInputOutput() and modified it