Testing how well a DOM-made sinewave responds in React