Workaround testcase2
Add testcase for storing two snapshots in memory and flushing them to disk
Remove wtf object from CommonJS cache, which were making it impossible to dispose.
Fix for issue 1