added advanceTo(), setHeaderLine() and corresponding tests