fixed two tests
closing the stream where it's gotten, not where it's used
create file working