updated test
added a test and sort of helped the file io issue