show an error in tests/hello_world_file.cpp if we can't open the file; closes #2389