Add some unit tests for file storage and fix bugs.