test for savetxt with file like objects