Support read_from_head without pos_file option

I forgot to add `read_from_head` without `pos_file` supoprt.

In addtion, #247 includes InputDriverTest fix and several useful tests.
So I merged above patch into this PR.