tests for file.py (close #46)