Move the example files to more appropriate directories.
Also update the tests to do I/O on them.