Added some tests for file operation.