Fix more inconsistences.
Fix wrong behavior of migrations bootstrap.
Fix wrong behavior on collection existence check function.
Add basic tests for storage.