tests for commits added and end of stream