Convert "doctest" style tests to nosetests

I converted all of the doctest style txt file tests to nosetests.
Hopefully this resolves the crlf issues too.