Created test for file stream closing
Removed bug when setting map size