I was getting two 'ready' events in the test. I'll see if there's a better way to fix that.