add tests for input detection on createWriteStream