Test overall input and output