Improvements to open_file unit tests - use mock CORE::GLOBAL