refactor(storage): several improvements to regression tests.

* add checks for file content based on md5 hash
* use tmp module to manage temp files
* use async module for batch tasks