Tests that OscillatorNode calls its onended EventListener.