Fix flickering test: reset the 'sourceText' global variable before asking for the new source text, to make sure we wait for the asynchronous request to end.