Testingframework record collector does not reset internal variables
When using the Unit-Test framework frontend record collector  the resulting response is invalid.
Instead of adding records only to the specific section (configured via TypoScript) the records pile up in $this->records and get added to every section. The reason this only true for $this->records of the Collector is, that for the other class variables (like $this->structure) they are using appropriate array keys anyways.
My proposed solution is to reset the internal member variables: records, structure and structurePath each time after attaching a section. See patch on gerrit.