Fix test by creating test dirs.
Ignore testdirs.
Ignore swap files