Modified filesystem functions
Added unittests for filesystem tasks