The end of rendering can be specified using the endmark. If the endmark is specified, then rendering ends at the endmark.
If the endmark is not specified, rendering ends at the document end.
In the reference case, you will hear a piece of music.
In the test case, listener should hear the music without the last part of the music.