Generator object has no attribute start_pos (added a failing test)

This is a bug I noticed when I writing #176.