Clean up test suite

Use tesfiles everywhere instead of creating them on the fiy