change input stream for testing