Pipes integration test: the main function now sleeps for 1 second.