Added empty file opening test in non-interactive mode.