Is that really a good "test"? Printing a string isn't hard in any non-hobby language.
As other poster's have commented, for most languages the code for this is trivial but the importance is that it tests the entire compile/link/execute tool chain which may not be as trivial to setup.