Refactor corpus tests

Also ensures that all possible temp test files are removed

Use overriden run instead of skipTest (for Python 2.6 support)