fix test label typo
clean up tests
fix end event when piped