improved tester of file streams