added tests for file operations