Tests for File mode