Testing of input or output with loop-back