small remark on what we're testing for
Bugfix: after adding more than we can handle to the internal state, we'd
resize the slice to begin->max items (so chopping off all the new
entries, exactly the opposite of what you want to do). Added test to
capture this as well.
go fmt