support args.writeStream and run test on travis-ci