Get the file-size before .storage is set to None
Add missing table.close() in test
Fix mock_storage in unittest
Merge pull request #3198 from manics/tables_metadata_close-12606

 Tables metadata really check the size after close