Make badge creation test use a test_directory for uploads (create it and remove it)