(Maint) Attempt to fix flickering test
The file type integration test flickered at times for what seems to have
been some sort of race for creating tempfiles and tempdirs. I've tried
to remove much of the interdependence between the tests in a hope to
remove this bug in the test.