Add some tests for file.py