Some tests on file writing and list generation.