Fix test files
Horrible file writing