corrected an error and patched two tests
renamed TsvInputStreamBuilder into InputStreamFactory and improved some tests