Fix for test.

Must clear the state youtubeXhr variable before counting number
of ajax calls.