added tests for fresh file and invalid file path