Hi
The code that you posted compiles and runs fine for me (I had to change the backslash to a slash in the include but that's trivial).
Then, I uncommented everything: still fine.
Added testFont.loadFromFile and set it for testText and it displays it in the window.
There have been a number of fixes/modifications with the text parts of SFML since v2.1 so it would be wise to build the latest master for yourself (from
here). Failing that, you could download a nightly build (from
here).
On a side note, I'm curious as to why you used
exit(0) instead of just
window.close() as shown in the tutorials.