Added unit tests for file access