Added unit tests for file-based datastore.