added createWriteStream tests