Added file-based opening test.