Modified configureInputOutput() and its tests