Set up test input and output