Added test for tellp/tellg issue.