util (TailingInputStream): add unit test